<?php

namespace App\Http\Controllers\OpenShop\Merchant;

use App\Http\Controllers\BaseController;
use App\Service\OpenShop\Merchant\LogisticsService;
use Illuminate\Http\Request;

class LogisticsController extends BaseController
{
    /**
     * 首批订货、设备物流信息
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(Request $request)
    {
        $shopId = (int)$request->header('shopId', 0);
        $orderNo = (string)$request->get('orderNo', '');
        return $this->success([
            'list' => LogisticsService::detail($orderNo, $shopId),
        ]);
    }
}
